php distinct

91

$products = DB::table('products')->select( DB::raw('DISTINCT(product_id)') )->where('is_enable', '=', 1)->groupBy('product_id')->get();

Comments

Submit
0 Comments